From 5601f6c62f2b106be6f3e8d99bc7a8b1cdfb463e Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 24 Nov 2005 19:49:15 +0100 Subject: [PATCH] Quieten down grant-table transfer failure when it is because a domain is dying. Signed-off-by: Keir Fraser --- xen/common/grant_table.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 1c591a0c8f..8be44c5455 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -726,10 +726,11 @@ gnttab_transfer( unlikely(e->tot_pages >= e->max_pages) || unlikely(!gnttab_prepare_for_transfer(e, d, gop.ref)) ) { - DPRINTK("gnttab_transfer: Transferee has no reservation headroom " - "(%d,%d) or provided a bad grant ref (%08x) or " - "is dying (%lx)\n", - e->tot_pages, e->max_pages, gop.ref, e->domain_flags); + if ( !test_bit(_DOMF_dying, &e->domain_flags) ) + DPRINTK("gnttab_transfer: Transferee has no reservation " + "headroom (%d,%d) or provided a bad grant ref (%08x) " + "or is dying (%lx)\n", + e->tot_pages, e->max_pages, gop.ref, e->domain_flags); spin_unlock(&e->page_alloc_lock); put_domain(e); (void)__put_user(GNTST_general_error, &uop[i].status); -- 2.30.2